import request from "./index.js";
let webSer = process.env.VUE_APP_SERVICE_SERVE
//添加老人信息
export function addPeopleHttp(query) {
  return request({
    url:`${webSer}/addPeopleMessage`,
    method: "post",
    params: query,
  });
}



//查询老人信息
export function queryPeopleHttp(query) {
  return request({
    url: `${webSer}/queryPeopleMessage`,
    method: "post",
    params: query,
  });
}

//查询家属信息
export function queryFamilyHttp(query) {
  return request({
    url: `${webSer}/queryFamilyMessage`,
    method: "post",
    params: query,
  });
}

//删除信息 -- 老人的信息
export function delOldMessage(query) {
  return request({
    url: `${webSer}/delOldMessage`,
    method: "post",
    params: query,
  });
}

//删除信息 -- 家属的信息
export function delFamilyMessage(query) {
  return request({
    url: `${webSer}/delFamilyMessage`,
    method: "post",
    params: query,
  });
}

//编辑家属信息
export function editFamilyMessage(query) {
  return request({
    url: `${webSer}/editFamilyMessage`,
    method: "post",
    params: query,
  });
}
